home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 002 / tabs21.arc / TABS21.DOC < prev   
Text File  |  1986-03-05  |  3KB  |  88 lines

  1.  
  2. TABS Command
  3. -----------------
  4.  
  5. Purpose:   Replace blanks with TAB character(s); or expand TABs.
  6.  
  7. Format:    TABS  [d:][\path]infile [d:][\path]    [/D]
  8.                                    [d:][outfile]
  9.  
  10. Remarks:   Any TAB characters found are first expanded. If TABS
  11.         appear within quoted strings - out of context - they will
  12.         not be expanded. Trailing blanks are deleted.
  13.  
  14.         The /D option may be used to remove TABs from a file,
  15.  
  16.         The input file name must be supplied. It may include a
  17.         drive and/or path name. If the output file name is
  18.         omitted, the input file name, current drive, and current
  19.         directory are used.
  20.  
  21.         Each filename may contain drive and path specifications.
  22.         Wildcards are allowed with the input filename only. All
  23.         files matching the input specification are processed.
  24.         The output file may be a drive and path, or a drive and
  25.         filename, but not path and filename.
  26.  
  27.         If any errors are encountered, the ERRORLEVEL variable is
  28.         set to a 1 (one).
  29.  
  30.         The maximum logical record size is 255, see MAXREC equate.
  31.         Defacto tab columns are 9,17,25,...
  32.  
  33.         Written by Vernon Buerg for the IBM PC using DOS 2.
  34.         For public domain use. Not for sale or hire.
  35.  
  36. Examples:
  37.  
  38.  o  Invoke without parameters to display usage information:
  39.  
  40.         A>TABS
  41.           TABS - Version 2.0 - V.Buerg
  42.           Usage:  TABS  infile  outfile  [/D]
  43.            o  infile and outfile may include drive and path names
  44.            o  use ending /D to expand tabs to spaces.
  45.            o  March 5, 1986; public domain.
  46.         A>
  47.  
  48.  o  Put tabs in all files with an extension of DOC from drive A in
  49.     the subdirectory named SOURCE, to directory TEST on drive B:
  50.  
  51.         A>TABS A:\SOURCE\*.DOC B:\TEST
  52.  
  53.  o  Copy file MEMO.TXT as MEMO2.TXT and put in tabs:
  54.  
  55.         A>TABS MEMO.TXT MEMO2.TXT
  56.  
  57.  o  Remove tabs from file TEST.ASM on drive C and place the new file
  58.     on drive B:
  59.  
  60.         A>TABS C:TEST.ASM B: /D
  61.  
  62.  
  63. Notes:  Version 1.6 - June 17, 1984
  64.          o  includes a correction for the use of wildcards
  65.             to name the output file the same as the input file if
  66.             only a drive was supplied for the output file name.
  67.  
  68.         Version 1.7 - March 2, 1985
  69.          o  processes all input files which match the input file
  70.             specification
  71.          o  treats the EOF character as end of file, thus embedded
  72.             EOF characters will result in a truncated file
  73.  
  74.         Version 1.8 - April 13, 1985
  75.          o  The input file specification is now required,
  76.          o  The output file specification may include a path OR
  77.             a file name, but not both.
  78.          o  Set DOS ERRORLEVEL to 1 if any errors.
  79.  
  80.         Version 1.9 - June 5, 1985
  81.          o  The output file specification is required unless the
  82.             input file specification has a drive. This prevents
  83.             over-writing the input file.
  84.  
  85. |       Version 2.0 - March 5, 1986
  86. |        o  Add EOF to end of file for programs that need it.
  87. |        o  Improve performance about 10%.
  88.